package wyd.handler;

import com.wyd.core.common.AppUser;
import org.apache.log4j.Logger;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.UnsupportedEncodingException;


@ControllerAdvice
public class ApiTokenHandler {
	
	/** 日志实例 */
	private static final Logger logger = Logger.getLogger(ApiTokenHandler.class);
	
	@SuppressWarnings("unused")
	@ModelAttribute
	public AppUser getUser(HttpServletRequest request, HttpServletResponse response,
						   @RequestParam(value = "token", required = false) String token) throws UnsupportedEncodingException {
		
		return new AppUser();
	}


	
}
